<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购物车</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .box {
            width: 60%;
            height: 80%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: #006eff solid 5px;
            border-radius: 10px;
            padding: 1%;
        }

        .hz {
            width: 150px;
            height: 50px;
            border: #006eff solid 3px;
            border-radius: 15px;
            line-height: 50px;
            padding: 1%;
            position: relative;
            transition: .3s;
        }

        .hz:hover {
            background-color: #006eff;
        }

        .hz:hover .gwc {
            color: white;
        }

        .hz img {
            width: 50px;
            height: 50px;
        }

        .nb {
            background-color: orange;
            width: 30px;
            height: 30px;
            position: absolute;
            left: 0;
            top: 0;
            color: white;
            font-size: 15px;
            text-align: center;
            line-height: 30px;
            border-radius: 25%;
            transition: .3s;

        }

        .gwc {
            position: absolute;
            color: red;
            font-size: 18px;
            font-weight: bold;
            transition: .3s;

        }
    </style>
</head>

<body>
    <div class="box">
        <div class="hz">
            <span class="nb">99+</span>
            <img src="images/购物车.png">
            <span class="gwc">购物车</span>
        </div>
    </div>
</body>

</html>